package com.basketball.gym.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.basketball.gym.pojo.Finance;
import com.baomidou.mybatisplus.extension.service.IService;
import com.basketball.gym.pojo.ResponseData;
import com.basketball.gym.pojo.User;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 赵肖云
 * @since 2021-03-27
 */
public interface FinanceService extends IService<Finance> {

    /**
     * 查询流水
     */
    ResponseData<List<Finance>> getFinance(Finance finance, User user);

    /**
     * 管理员查询流水
     */
    ResponseData<IPage<Finance>> adminGetFinance(Finance finance);
}
